package com.hljx.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.hljx.config.BaseEntity;
import java.time.LocalDateTime;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 字典项
 * </p>
 *
 * @author gx
 * @since 2023-09-18
 */
@Getter
@Setter
@TableName("sys_dict_item")
public class SysDictItem extends BaseEntity {

    /**
     * 字典父id
     */
    @TableField("dict_id")
    @ExcelIgnore
    private Long dictId;

    /**
     * 字典标签
     */
    @TableField("name")
    @ExcelProperty(value = "字典项标签", index = 0)
    private String name;

    /**
     * 字典code
     */
    @TableField("code")
    @ExcelProperty(value = "字典code", index = 1)
    private String code;

    /**
     * 字典排序
     */
    @TableField("sort")
    private Integer sort;

    /**
     * 启用状态：0->禁用 1->启用
     */
    @TableField("status")
    @ExcelIgnore
    private Integer status;


    @ExcelProperty(value = "是否启动", index = 2)
    @TableField(exist = false)
    private String enable;

    /**
     * 备注
     */
    @TableField("remark")
    @ExcelProperty(value = "备注", index = 3)
    private String remark;

}
